package com.qf.fanwang.controller;


import com.qf.fanwang.pojo.Good;
import com.qf.fanwang.pojo.Goods;
import com.qf.fanwang.pojo.User;
import com.qf.fanwang.service.GoodService;
import com.qf.fanwang.service.GoodsService;
import com.qf.fanwang.service.impl.GoodServiceImpl;
import com.qf.fanwang.service.impl.GoodsServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.stream.Location;
import java.io.IOException;
import java.util.List;

@WebServlet("/load")
public class LoadController extends BaseController {
    private GoodsService goodsService=new GoodsServiceImpl();
private GoodService goodService=new GoodServiceImpl();
    protected String show(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        List<Goods> list=goodsService.select();
        req.setAttribute("glist",list);
        List<Good> clist=goodService.selectAll();
        req.setAttribute("clist",clist);
        return "forward:show";
    }
}
